$(function(){

	var registerResult = {
		backToLink: function() {
			$('[data-role="backToLink"]').on('click', function() {
				var link = wsCommon.getCookie('go_back_link');
				if(link.indexOf('cart2') != -1) {
					link = './cart1.html';
				}
				window.location.href = link ? link : './index.html';
			})
		},
		init: function() {
			this.backToLink();
		}
	}

	registerResult.init();
})
